;(function(win){
	var Utils = win.Utils = {
		'basename': function(path){
			var basenameRE = /\/([^/]+)$/;
			var match;
			try {
				match = path.match(basenameRE);
			} catch (err){

			}
			if(match && match[1]){
				return match[1];
			}

		},
		'isEmail': function(emailAdress){
			//var emailRE = /^[a-zA-Z0-9-_\.]+@[a-zA-Z0-9-_\.]+$/;
			//var emailRE = /^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$/;
			var emailRE = /^(?:[-\w])+(?:\.[-\w]+)*@(?:[-\w])+(?:(?:\.[-\w]+)+)$/;
			if(emailAdress && emailRE.test(emailAdress)){
				return true;
			}
			return false;			
		}
	}
})(window);